﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;
using GraphCompiler.Core.Parsing;
using GraphCompiler.Core.SyntaxRepresentation;

namespace GraphCompiler.Core.Infrastructure
{
    public class IocBootstrapper
    {
        public void InitializeStructureMap()
        {
            ObjectFactory.Initialize(x =>
            {
                x.For<ITypedParser<BoxNode>>().Use<BoxParser>();
                x.For<ITypedParser<ArrowNode>>().Use<ArrowParser>();
                x.For<ITypedParser<DiagramNode>>().Use<DiagramParser>();
            });
        }
    }
}
